//
//  ImageMenuBarView.h
//  ImageEnginePlugin
//
//  Created by VNG on 10/18/12.
//
//

#import <Foundation/Foundation.h>

@protocol ImageMenuBarViewDelegate

- (void)finishedAnimationWhenTouchButton:(NSInteger)indexSelected;

@optional
- (void)slideValueChange:(NSInteger)newValue;
- (void)beginAnimationWhenTouchDown:(NSInteger)indexSelected;
@end


@interface ImageMenuBarView : UIScrollView
{
@protected
    NSObject <ImageMenuBarViewDelegate> *menuBarDelegate;
    
    NSInteger       numButton;
    NSInteger       spaceButton;
    
    CGSize          sizeButton;
    CGRect          rectView;
    
    NSInteger       indexSelectIndex;
    
    bool            hasEffectOut;
    bool            hasIconValue;
    
    int             kindMenuBar;
}

@property (nonatomic, assign)  NSInteger numButton;
@property (nonatomic, assign)  NSInteger indexSelectIndex;

-(void)buttonSelect:(id)sender;

-(void)effectTranslationOut;
-(void)effectTranslationIn;
-(void)resetSelectedIndex;
-(void)setSelectIndex:(int)index;

-(void)refreshBar;
-(void)progessFinishedDownload;

-(void)showMenu;
-(void)hiddenMenu;

@end
